// jmem.cpp : Defines the exported functions for the DLL application.
//

#include <jni.h>
/* Header for class allocator_Allocator_FixedAllocator_Chunk */

#ifndef _Included_allocator_Allocator_FixedAllocator_Chunk
#define _Included_allocator_Allocator_FixedAllocator_Chunk


#ifdef __cplusplus
extern "C" {
#endif

/*
 * Class:     allocator_Allocator_FixedAllocator_Chunk
 * Method:    getBaseAddress
 * Signature: (Ljava/nio/ByteBuffer;)J
 */
JNIEXPORT jlong JNICALL
Java_allocator_Allocator_00024FixedAllocator_00024Chunk_getBaseAddress(JNIEnv* env, jclass, jobject buffer)
{
	void* p = env->GetDirectBufferAddress(buffer);
	return reinterpret_cast<jlong>(p);
}


#ifdef __cplusplus
}
#endif
#endif



